package org.neuedu.chapter07_0623.demo05;

public class Test {
    public static void main(String[] args) {
        Child child = new Child();
        child.test();
        child.show();

        Parent p = new Parent();
        p.test();

        Parent p2 = new Child();
        Child child2 = ((Child) p2);
        p2.test();
        child2.show();
    }
}
